package cn.jjxx.modules.portal.service;

import cn.jjxx.core.model.AjaxJson;
import cn.jjxx.modules.portal.dto.UserDto;

import javax.servlet.http.HttpServletRequest;

public interface IRegisterService {
    /**
     * 注册时获取短信验证码
     * @param request request
     * @param phone phone
     * @return json
     * @author mali
     * @date 2019-01-16
     */
    AjaxJson getSMSCodeByReg(HttpServletRequest request, String phone);

    /**
     * 用户注册
     * @param request req
     * @param userDto 注册数据
     * @return json
     * @author mali
     * @date 2019-01-16
     */
    AjaxJson register(HttpServletRequest request, UserDto userDto);
}
